﻿using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace GameLayer
{
    public abstract class Layer
    {
        private Boolean _enable =true;
        private Boolean _visible = true;
        private Vector2 _position = Vector2.Zero;

        public Boolean Visible
        {
            get { return _visible; }
            set { _visible = value; }
        }

        public Boolean Enable
        {
            get { return _enable; }
            set { _enable = value; }
        }

        public virtual Vector2 Position
        {
            get { return _position; }
            set { _position = value; }
        }

        public abstract void Update(GameTime gameTime);
        public abstract void Draw(GameTime gameTime, SpriteBatch spriteBatch, Viewport viewport);
    }
}
